<?php
namespace Home\Model;
use Think\Model\ViewModel;
class GoodsViewModel extends ViewModel {
    //视图模型
    protected $viewFields = array(
    	        'Goods'=>array('go_id','user_id','brand_id','go_describe','go_no','go_name','go_value','go_num','go_info','classl_id','classm_id','classs_id','go_specifications','go_createtime','go_pics','go_describe','go_status','go_updatetime','go_clicknum','_type'=>'left'),
         
                'Brand'=>array('brand_id','brand_name','brand_status','brand_createtime','brand_updatetime','brand_order','_on'=>'Goods.brand_id=Brand.brand_id','_type'=>'left'),
        
           
                'Classl'=>array('classl_id','classl_name','classl_order','classl_img','classl_status','_on'=>'Goods.classl_id=Classl.classl_id','_type'=>'left'),
        
           
                'Classm'=>array('classm_id','classl_id','classm_name','classm_order','classm_status','_on'=>'Goods.classm_id=Classm.classm_id','_type'=>'left'),
        
           
                'Classs'=>array('classs_id','classl_id','classm_id','classs_name','classs_order','classs_status','_on'=>'Goods.classs_id=Classs.classs_id','_type'=>'left'),
        
           
                
        
           
                'User'=>array('user_id','role_id','user_name','user_realname','user_password','user_mobile','user_email','user_head','user_register_ip','user_login_time','user_login_ip','user_status','user_createtime','user_updatetime','user_clientid','_on'=>'Goods.user_id=User.user_id','_type'=>'left'),
        
           
    );
    
}